import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    mobile: window.sessionStorage.mobile || "",
  },
  mutations: {
    saveMobile(state, mobile) {
      state.mobile = mobile;
    },
  },
  actions: {
    saveMobileAction(context, mobile) {
      context.commit("saveMobile", mobile);
    },
  },
  modules: {},
});
